.class Lcom/esfile/screen/recorder/utils/q$a;
.super Ljava/lang/Object;
.source "SoftKeyboardMonitor.java"

# interfaces
.implements Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/esfile/screen/recorder/utils/q;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Lcom/esfile/screen/recorder/utils/q;


# direct methods
.method constructor <init>(Lcom/esfile/screen/recorder/utils/q;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/esfile/screen/recorder/utils/q$a;->a:Lcom/esfile/screen/recorder/utils/q;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onGlobalLayout()V
    .locals 3

    .line 1
    new-instance v0, Landroid/graphics/Rect;

    invoke-direct {v0}, Landroid/graphics/Rect;-><init>()V

    .line 2
    iget-object v1, p0, Lcom/esfile/screen/recorder/utils/q$a;->a:Lcom/esfile/screen/recorder/utils/q;

    invoke-static {v1}, Lcom/esfile/screen/recorder/utils/q;->a(Lcom/esfile/screen/recorder/utils/q;)Landroid/view/View;

    move-result-object v1

    invoke-virtual {v1, v0}, Landroid/view/View;->getWindowVisibleDisplayFrame(Landroid/graphics/Rect;)V

    .line 3
    iget-object v1, p0, Lcom/esfile/screen/recorder/utils/q$a;->a:Lcom/esfile/screen/recorder/utils/q;

    invoke-static {v1}, Lcom/esfile/screen/recorder/utils/q;->a(Lcom/esfile/screen/recorder/utils/q;)Landroid/view/View;

    move-result-object v1

    invoke-virtual {v1}, Landroid/view/View;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    invoke-virtual {v1}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;

    move-result-object v1

    iget v1, v1, Landroid/content/res/Configuration;->orientation:I

    .line 4
    iget-object v2, p0, Lcom/esfile/screen/recorder/utils/q$a;->a:Lcom/esfile/screen/recorder/utils/q;

    invoke-static {v2}, Lcom/esfile/screen/recorder/utils/q;->b(Lcom/esfile/screen/recorder/utils/q;)I

    move-result v2

    if-eqz v2, :cond_0

    iget-object v2, p0, Lcom/esfile/screen/recorder/utils/q$a;->a:Lcom/esfile/screen/recorder/utils/q;

    .line 5
    invoke-static {v2}, Lcom/esfile/screen/recorder/utils/q;->b(Lcom/esfile/screen/recorder/utils/q;)I

    move-result v2

    if-eq v1, v2, :cond_0

    return-void

    .line 6
    :cond_0
    iget-object v2, p0, Lcom/esfile/screen/recorder/utils/q$a;->a:Lcom/esfile/screen/recorder/utils/q;

    invoke-static {v2}, Lcom/esfile/screen/recorder/utils/q;->c(Lcom/esfile/screen/recorder/utils/q;)I

    move-result v2

    if-eq v2, v1, :cond_1

    .line 7
    iget-object v0, p0, Lcom/esfile/screen/recorder/utils/q$a;->a:Lcom/esfile/screen/recorder/utils/q;

    invoke-static {v0, v1}, Lcom/esfile/screen/recorder/utils/q;->a(Lcom/esfile/screen/recorder/utils/q;I)I

    return-void

    .line 8
    :cond_1
    invoke-virtual {v0}, Landroid/graphics/Rect;->height()I

    move-result v0

    .line 9
    iget-object v1, p0, Lcom/esfile/screen/recorder/utils/q$a;->a:Lcom/esfile/screen/recorder/utils/q;

    invoke-static {v1}, Lcom/esfile/screen/recorder/utils/q;->d(Lcom/esfile/screen/recorder/utils/q;)I

    move-result v1

    if-nez v1, :cond_2

    .line 10
    iget-object v1, p0, Lcom/esfile/screen/recorder/utils/q$a;->a:Lcom/esfile/screen/recorder/utils/q;

    invoke-static {v1, v0}, Lcom/esfile/screen/recorder/utils/q;->b(Lcom/esfile/screen/recorder/utils/q;I)I

    return-void

    .line 11
    :cond_2
    iget-object v1, p0, Lcom/esfile/screen/recorder/utils/q$a;->a:Lcom/esfile/screen/recorder/utils/q;

    invoke-static {v1}, Lcom/esfile/screen/recorder/utils/q;->d(Lcom/esfile/screen/recorder/utils/q;)I

    move-result v1

    if-ne v1, v0, :cond_3

    return-void

    .line 12
    :cond_3
    iget-object v1, p0, Lcom/esfile/screen/recorder/utils/q$a;->a:Lcom/esfile/screen/recorder/utils/q;

    invoke-static {v1}, Lcom/esfile/screen/recorder/utils/q;->d(Lcom/esfile/screen/recorder/utils/q;)I

    move-result v1

    sub-int/2addr v1, v0

    const/16 v2, 0xc8

    if-le v1, v2, :cond_5

    .line 13
    iget-object v1, p0, Lcom/esfile/screen/recorder/utils/q$a;->a:Lcom/esfile/screen/recorder/utils/q;

    invoke-static {v1}, Lcom/esfile/screen/recorder/utils/q;->e(Lcom/esfile/screen/recorder/utils/q;)Lcom/esfile/screen/recorder/utils/q$b;

    move-result-object v1

    if-eqz v1, :cond_4

    .line 14
    iget-object v1, p0, Lcom/esfile/screen/recorder/utils/q$a;->a:Lcom/esfile/screen/recorder/utils/q;

    invoke-static {v1}, Lcom/esfile/screen/recorder/utils/q;->e(Lcom/esfile/screen/recorder/utils/q;)Lcom/esfile/screen/recorder/utils/q$b;

    move-result-object v1

    iget-object v2, p0, Lcom/esfile/screen/recorder/utils/q$a;->a:Lcom/esfile/screen/recorder/utils/q;

    invoke-static {v2}, Lcom/esfile/screen/recorder/utils/q;->d(Lcom/esfile/screen/recorder/utils/q;)I

    move-result v2

    sub-int/2addr v2, v0

    invoke-interface {v1, v2}, Lcom/esfile/screen/recorder/utils/q$b;->a(I)V

    .line 15
    :cond_4
    iget-object v1, p0, Lcom/esfile/screen/recorder/utils/q$a;->a:Lcom/esfile/screen/recorder/utils/q;

    invoke-static {v1, v0}, Lcom/esfile/screen/recorder/utils/q;->b(Lcom/esfile/screen/recorder/utils/q;I)I

    return-void

    .line 16
    :cond_5
    iget-object v1, p0, Lcom/esfile/screen/recorder/utils/q$a;->a:Lcom/esfile/screen/recorder/utils/q;

    invoke-static {v1}, Lcom/esfile/screen/recorder/utils/q;->d(Lcom/esfile/screen/recorder/utils/q;)I

    move-result v1

    sub-int v1, v0, v1

    if-le v1, v2, :cond_7

    .line 17
    iget-object v1, p0, Lcom/esfile/screen/recorder/utils/q$a;->a:Lcom/esfile/screen/recorder/utils/q;

    invoke-static {v1}, Lcom/esfile/screen/recorder/utils/q;->e(Lcom/esfile/screen/recorder/utils/q;)Lcom/esfile/screen/recorder/utils/q$b;

    move-result-object v1

    if-eqz v1, :cond_6

    .line 18
    iget-object v1, p0, Lcom/esfile/screen/recorder/utils/q$a;->a:Lcom/esfile/screen/recorder/utils/q;

    invoke-static {v1}, Lcom/esfile/screen/recorder/utils/q;->e(Lcom/esfile/screen/recorder/utils/q;)Lcom/esfile/screen/recorder/utils/q$b;

    move-result-object v1

    invoke-interface {v1}, Lcom/esfile/screen/recorder/utils/q$b;->a()V

    .line 19
    :cond_6
    iget-object v1, p0, Lcom/esfile/screen/recorder/utils/q$a;->a:Lcom/esfile/screen/recorder/utils/q;

    invoke-static {v1, v0}, Lcom/esfile/screen/recorder/utils/q;->b(Lcom/esfile/screen/recorder/utils/q;I)I

    :cond_7
    return-void
.end method
